<include file="Home@Public:header" />
<div class="row">
	<div class="col-sm-3 col-xs-3">
		<include file="User@Public:menu" />
	</div>
	<div class="col-sm-9 col-xs-9">
		<div class="panel panel-default">
			<div class="panel-heading">我的订餐</div>
			<div class="panel-body">
				<div class="alert alert-danger">
					如还未出单，您可通过电话联系我们进行送餐！电话 {$conf['tel']}
				</div>
				<table class="table">
					<thead>
						<tr>
							<th>订单号</th>
							<th>订单金额</th>
							<th>订单状态</th>
							<th>下单时间</th>
							<th>结束时间</th>
							<th>查看</th>
						</tr>
					</thead>
					<tbody>
						<volist name="orderlist" id="item">
						<tr>
							<td>{$item['oid']}</td>
							<td>￥ {$item['orderprice']}</td>
							<td>
								<switch name="item.orderstatus">
									<case value="4">已完成</case>
									<case value="5">送货中</case>
									<default />
									提交成功
								</switch>
							</td>
							<td>{$item.order_ctime|date="Y-m-d H:i",###}</td>
							<td>
								<empty name="item.order_endtime">
									还未出单
								<else />
									{$item.order_endtime|date="Y-m-d H:i",###}
								</empty></td>
							<td>
								<a href="#" class="btn btn-danger" data-toggle="modal" data-target="#modal_{$item['oid']}">详情</a>
								<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" id="modal_{$item['oid']}" aria-hidden="true">
									<div class="modal-dialog modal-lg">
										<div class="modal-content">
											<div class="modal-header">
											<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
											<h4 class="modal-title" id="myModalLabel">订单详情</h4>
											</div>
											<div class="modal-body">
												<table class="table">
													<thead>
														<tr>
															<th>菜品</th>
															<th>单价</th>
															<th>数量</th>
															<th>小计</th>
														</tr>
													</thead>
													<volist name="item['Foodorderext']" id="vo">
														<tr>
															<td >{$vo.fname}</td>
															<td >{$vo.fprice}</td>
															<td >{$vo.fcount}</td>
															<td >{$vo.prices}</td>
														</tr>
													</volist>
												</table>
											</div>
										</div>
									</div>
								</div>
							</td>
						</tr>
						</volist>
					</tbody>
				</table>
				<div class="page">{$page}</div>
			</div>
		</div>
	</div>
</div>
<include file="Home@Public:footer" />